package com.wutong.subject_server.feignInterface;

import com.alibaba.fastjson.JSONObject;
import com.wutong.common_server.result.Response;
import com.wutong.common_server.utils.ResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Create By Administrator on 2022/11/28.
 */
@Component
@Slf4j
public class TeacherServerFallBack implements TeacherServer{


    @Override
    public String getTeacherById(String id) {
        //log.info("服务降级了。。。。。。。");
        return JSONObject.toJSONString(ResponseUtil.failure("服务降级了。。。。。。。"));
    }
}
